package com.guigu.dealservice.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Total {
    //业务员id
    @TableField(value = "businessman_id")
    private Integer businessmanId;
    //业务员名字
    @TableField(value = "salesman_name")
    private String salesmanName;
    //总订单数
    @TableField(value = "total_orders")
    private Integer totalOrders;
    //总销售额
    @TableField(value = "total_sales_amount")
    private Integer totalSalesAmount;
    //平均订单金额
    @TableField(value = "average_order_value")
    @JsonDeserialize(contentUsing = LocalDateTimeDeserializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Integer averageOrderValue;
}
